package com.itheima.zifu;

import java.io.FileWriter;
import java.io.IOException;

/*
字符流写数据
 */
public class Demo03 {


    public static void main(String[] args) throws IOException {

        FileWriter writer = new FileWriter("day13\\aaa\\c.txt");
        writer.write('魑');
        writer.write("\r\n");
        char[] chars = {'魑', '魅', '魍', '魉'};
        writer.write(chars);
        writer.write("\r\n");
        writer.write(chars,1,2);
        writer.write("\r\n");
        writer.write("吴签");
        writer.write("\r\n");
        writer.write("魑魅魍魉吴签",0,6);
        writer.close();
    }
}
